package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 电子告知页
    */
@Data
@TableName(value = "JG_CHECK_INFORM")
//@KeySequence("JG_CHECK_INFORM_SQE")
public class JgCheckInform implements Serializable {

    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 被检查单位名称
     */
    @TableField(value = "COMPANY_NAME")
    private String companyName;

    /**
     * 地址
     */
    @TableField(value = "ADDRESS")
    private String address;

    /**
     * 检查人员1id
     */
    @TableField(value = "CHECK_PERSON1_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkPerson1Id;

    /**
     * 检查人员1姓名
     */
    @TableField(value = "CHECK_PERSON1_NAME")
    private String checkPerson1Name;

    /**
     * 检查人员2id
     */
    @TableField(value = "CHECK_PERSON2_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkPerson2Id;

    /**
     * 检查人员2姓名
     */
    @TableField(value = "CHECK_PERSON2_NAME")
    private String checkPerson2Name;

    /**
     * 检查时间
     */
    @TableField(value = "CHECK_TIME")
    private String checkTime;

    /**
     * 检查地点
     */
    @TableField(value = "CHECK_ADDR")
    private String checkAddr;

    /**
     * 告知事项
     */
    @TableField(value = "NOTIFY_MATTERS")
    private String notifyMatters;

    /**
     * 是否申请回避：0否，1是
     */
    @TableField(value = "IS_AVOID")
    private String isAvoid;

    /**
     * 被检查单位签字url
     */
    @TableField(value = "COMPANY_SIGN")
    private String companySign;

    /**
     * 检查人员1签字url
     */
    @TableField(value = "CHECK_PERSON1_SIGN")
    private String checkPerson1Sign;

    /**
     * 检查人员2签字url
     */
    @TableField(value = "CHECK_PERSON2_SIGN")
    private String checkPerson2Sign;

    /**
     * 告知页url
     */
    @TableField(value = "INFORM_URL")
    private String informUrl;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 日常检查id
     */
    @TableField(value = "DAILY_CHECK_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dailyCheckId;


    /**
     * 是否删除：0-否，1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;


    private static final long serialVersionUID = 1L;
}
